﻿#ifndef HRIBBONQUICKACCESSBAR_H
#define HRIBBONQUICKACCESSBAR_H
#include "HRibbonGlobal.h"
#include "HRibbonCtrlContainer.h"
#include <QMenu>
#include <QToolButton>
class HRibbonToolButton;
class HRibbonQuickAccessBarPrivate;

///
/// \brief ribbon左上顶部的快速响应栏
///
class HRIBBON_EXPORT HRibbonQuickAccessBar : public HRibbonCtrlContainer
{
    Q_OBJECT
public:
    HRibbonQuickAccessBar(QWidget *parent = 0);
    ~HRibbonQuickAccessBar();
    void addSeparator();
    void addAction(QAction *act);
    void addWidget(QWidget *w);
    void addMenu(QMenu *m, QToolButton::ToolButtonPopupMode popMode = QToolButton::InstantPopup);

protected:
    virtual void initStyleOption(QStyleOption *opt);

private:
    HRibbonQuickAccessBarPrivate *m_d;
};

#endif // HRIBBONQUICKACCESSBAR_H
